8c093e7d7af4852c11180b0f339ba0e3ce440358,xwiki-platform-core/xwiki-platform-watchlist/xwiki-platform-watchlist-api/src/main/java/org/xwiki/watchlist/internal/DefaultWatchListNotifier.java,WatchListNotifier,sendEmailNotification,#String#List#String#Date#XWikiContext#,84
Before Change
VelocityContext vcontext = new VelocityContext();
vcontext
.put(XWIKI_USER_CLASS_FIRST_NAME_PROP, userObj.getProperty(XWIKI_USER_CLASS_FIRST_NAME_PROP).getValue());
vcontext.put(XWIKI_USER_CLASS_LAST_NAME_PROP, userObj.getProperty(XWIKI_USER_CLASS_LAST_NAME_PROP).getValue());
vcontext.put("events", events);
vcontext.put("xwiki", new com.xpn.xwiki.api.XWiki(context.getWiki(), context));
vcontext.put("util", new com.xpn.xwiki.api.Util(context.getWiki(), context));
After Change
// Prepare email template (wiki page) context
VelocityContext vcontext = new VelocityContext();
vcontext.put(XWIKI_USER_CLASS_FIRST_NAME_PROP, userObj.getStringValue(XWIKI_USER_CLASS_FIRST_NAME_PROP));
vcontext.put(XWIKI_USER_CLASS_LAST_NAME_PROP, userObj.getStringValue(XWIKI_USER_CLASS_LAST_NAME_PROP));
vcontext.put("events", events);
vcontext.put("xwiki", new com.xpn.xwiki.api.XWiki(context.getWiki(), context));
vcontext.put("util", new com.xpn.xwiki.api.Util(context.getWiki(), context));